home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Programming / LEDA / INSTALL.amiga < prev    next >
Text File  |  1994-11-16  |  3KB  |  108 lines

  1.  
  2.             +---------------------------+
  3.             |Installing LEDA on an Amiga|
  4.             +---------------------------+
  5.  
  6. (If you don't know what LEDA is about, PLEASE read the file "README"
  7. before you continue reading this text.)
  8.  
  9. LEDA libs compiled with gcc258 by Gerhard Leibrock, November 1994.
  10.  
  11. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  12. !!!!THE SOURCE CODE IS NOT INCLUDED IN THE BINARY DISTRIBUTION!!!!
  13. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  14.  
  15.  
  16. If you want to use LEDA on an Amiga machine, you need gcc (at least 258),
  17. OS 2.x, and if you want gfx support, DaggeX 1.0b is recommended.
  18. (DaggeX 1.0b is a freely distributable X11 version for AmigaDOS done by
  19. Kari 'Dagge' Mettinen, Leonard 'Vinsci' Norrgård. It can be found eg on
  20. the Meeting Pearls CD).
  21.  
  22. I did compile 2 versions of LEDA with gcc258 (Both optimized with -O2):
  23.  
  24.     1) a generic version, should be useable on ANY Amiga
  25.     2) a special 68020, 68881 version
  26.  
  27. Version (1) can be found in the generic distribution, (2) can be
  28. found in the special high distribution.
  29.  
  30. LEDA consists of 4 linker libraries:
  31.  
  32.    libL.a             main  library
  33.    libG.a             graph library
  34.    libP.a             plane library
  35.    libWx.a            X11 window library  (optional)
  36.  
  37. Copy them to a place where you would like to access them. This could be
  38. gcc:lib (so you would not have to specify a linker path) or any other place.
  39.  
  40.  
  41.         THE LINKER LIBS WERE COMPILED FOR GCC!!!
  42.  
  43. Copy the LEDA includes to a place where you like to. Don't forget to
  44. tell g++ the path of the LEDA includes with the "-I" option.
  45.  
  46.  
  47. Changes for the Amiga version: 
  48. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  49.  
  50.     Because the amiga operating system isn't case sensitive concerning
  51.     filenames, I had to rename three(!) include files, because they exist
  52.     in two version, one completely written in lower case, the other one
  53.     has a capital as first letter:
  54.  
  55.         point.h        Point.h
  56.         point1.h    Point1.h
  57.         segment.h    Segment.h
  58.         
  59.     I did rename the upper case files to:
  60.         _Point.h
  61.         _Point1.h
  62.         _Segment.h
  63.  
  64.     If you use one of these include files, please use something like:
  65.     
  66.     #ifdef AMIGA
  67.     #    include <_Point.h>
  68.     #else
  69.     #    include <Point.h>
  70.     #endif
  71.     
  72.     for compatibility reasons.
  73.  
  74.  
  75. Recompiling LEDA
  76. ****************
  77.  
  78. o Get a gcc compiler, the X11 includes, the X11 linker libs, at least 8MB RAM
  79.     or virtual memory.
  80. o Get the LEDA amiga source distribution.
  81.   (The binary version is missing the src/ drawer, about 3640 KB).
  82. o cd src
  83. o Edit `Make.src.amiga.high' to change the compiler options (ONLY if you
  84.   want to create a very special version for your computer)
  85.     Then if asked during the operation of `makefile.amiga' enter `N' and
  86.     your version will be created.
  87. o Invoke `Makefile.amiga' (It is just a batch file).
  88.   There you will be asked, if you want to create a high version, or a generic
  89.   one.
  90. o Invoke `cleanup.amiga' to delete the generated .o files
  91. o cd / -> You will find the lib-files (lib*.a)
  92.  
  93. The compilation of LEDA was done with an A3000/25Mhz, 8MB (fast mem) under
  94. OS3.1. I had to use VMM 2.1 done by Martin Apel
  95. (apel@gypsy.physik.uni-kl.de) when compiling the example programs with gcc.
  96. It took about 2.5 hs (for each version) to compile the linker-libs.
  97.  
  98.  
  99.     Gerhard, November 1994
  100.  
  101.  
  102.  
  103. Gerhard Leibrock, Neuhaeuselerstr. 12, 66459 Kirkel, T.: (+49) 06849/6134
  104.  
  105. e-mail: fach5@cipsol.cs.uni-sb.de
  106.  
  107.  
  108.